export function createLyricSlider(lyric, rowCount) {
  if (!lyric) {
    return [];
  }
  const textrows = lyric.split("\n").filter((i) => !(i == "" || /^\r$/.test(i)));
  let tmp = [];
  const rows = [];
  textrows.forEach((t, i) => {
    if (i % rowCount === 0 && tmp.length > 0) {
      rows.push(tmp);
      tmp = [];
    }
    tmp.push(t);
  });
  rows.push(tmp);

  return rows;
}
